API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsMaths
Geometry
Rectangle.h
1
// Rectangle.h
3
//
5
6
namespace
nkMaths
7
{
11
class
DLL_WINUI_EXPORT
Rectangle
12
{
13
public :
14
15
// Attributes
16
float
_x = 0.f ;
17
float
_y = 0.f ;
18
float
_width = 0.f ;
19
float
_height = 0.f ;
20
21
// Functions
25
Rectangle
() = default ;
34
Rectangle
(
float
x,
float
y,
float
width,
float
height) ;
35
36
// Utilities
43
bool
pointInside
(
Point
point)
const
;
44
45
// Operators
52
Rectangle
operator+ (
const
Rectangle
& other) ;
53
} ;
54
}
nkMaths
Encompasses all API of component NilkinsMaths.
Definition:
IntVector.h:7
nkMaths::Rectangle::Rectangle
Rectangle()=default
nkMaths::Rectangle::Rectangle
Rectangle(float x, float y, float width, float height)
nkMaths::Point
Represents a 2D Point.
Definition:
Point.h:12
nkMaths::Rectangle::pointInside
bool pointInside(Point point) const
nkMaths::Rectangle
Represents a 2D rectangle.
Definition:
Rectangle.h:12
Generated by
Doxygen
1.8.18